import { PathFinderManager } from "../PathFinderManager";
import { ACostDecorate } from "./ACostDecorate";

/**
 * 设置忽略阻挡
 */
export class ACreepSetIngoreBlock extends ACostDecorate
{
    decorate(manager:PathFinderManager,roomName: string, costs: CostMatrix,opt:IPathFinderOpt): CostMatrix 
    {
        if(opt.IngorePosition)
        {
            for(const blockpos of opt.IngorePosition)
            {
                costs.set(blockpos.x, blockpos.y, 0x5);
            }
        }
        return costs
    }

}